<?php echo '';exit;?>
<!--{template home/space_header}-->

<div class="klp_bjtouxiang">
	<!--{subtemplate home/spacecp_headerm}-->
<div class="klp_datumitembox border-bottom">
	<div class="mn">
		<div class="bm bw0">
		<!--{hook/spacecp_avatar_top}-->
		
		<link href="template/huyou_zisy/klp_img/avatar/cropper.css" rel="stylesheet"  type="text/css" media="all">
		<link href="template/huyou_zisy/klp_img/avatar/main.css" rel="stylesheet" type="text/css" media="all">

		<style>
			.tbn,.ct2_a .appl{box-sizing: unset;}
			button, input, select, textarea {line-height: normal;}
			@media(max-width:1200px){
				.klp_usermedia{display: none;}
				.img-container{min-height: 300px; max-height: 400px;}
				.docs-preview{margin-right: 0;}
				.klp_avaleft,.klp_avaright{width:100%;}
				.klp_avaleft{margin:10px 0;}
				.klp_avaright{margin-bottom: 10px;}
				
				.docs-preview .img-preview{ margin: 0; padding: 0; float: left;box-sizing: border-box;}
				.preview-lg{ width:40% !important}
				.preview-md{ width:30% !important}
				.preview-sm{ width: 20% !important;}
				.preview-xs{ width: 10% !important;}
			}
		</style>
			<div class="avaclass">如果头像上传失败请将模版根目录的php文件里的user.php传到到uc_server/contral目录覆盖.<br>如果已经覆盖，请将下面代码复制到后台==应用==地方门户自适应配套插件== 自定义css  文本框里就不会再显示此消息了<p>.avaclass{display:none;}</p></div>


		<div class="htmleaf-container">
			<div class="container">
				 <div class="docs-buttons">
					<div class="btn-group">
					  <button class="btn btn-primary" data-method="setDragMode" data-option="move" type="button" title="Move">
						<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;setDragMode&quot;, &quot;move&quot;)">
						  <span class="icon icon-move"></span>
						</span>
					  </button>
					  <button class="btn btn-primary" data-method="setDragMode" data-option="crop" type="button" title="Crop">
						<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;setDragMode&quot;, &quot;crop&quot;)">
						  <span class="icon icon-crop"></span>
						</span>
					  </button>
					  <button class="btn btn-primary" data-method="zoom" data-option="0.1" type="button" title="Zoom In">
						<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;zoom&quot;, 0.1)">
						  <span class="icon icon-zoom-in"></span>
						</span>
					  </button>
					  <button class="btn btn-primary" data-method="zoom" data-option="-0.1" type="button" title="Zoom Out">
						<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;zoom&quot;, -0.1)">
						  <span class="icon icon-zoom-out"></span>
						</span>
					  </button>
					  <button class="btn btn-primary" data-method="rotate" data-option="-45" type="button" title="Rotate Left">
						<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;rotate&quot;, -45)">
						  <span class="icon icon-rotate-left"></span>
						</span>
					  </button>
					  <button class="btn btn-primary" data-method="rotate" data-option="45" type="button" title="Rotate Right">
						<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;rotate&quot;, 45)">
						  <span class="icon icon-rotate-right"></span>
						</span>
					  </button>
					</div>
					</div>
<div class="klp_clear"></div>
					<div class="row">
						<div class="klp_avaleft">

							<div class="img-container">
								<!--{avatar($_G[uid],big)}-->
							</div>
						</div>
						<div class="klp_avaright">

							<div class="docs-preview clearfix">
								<div class="img-preview preview-lg"></div>
								<div class="img-preview preview-md"></div>
								<div class="img-preview preview-sm"></div>
								<div class="img-preview preview-xs"></div>
							</div>
						</div>
					</div>
				<div class="klp_clear"></div>
				<div class="docs-buttons">
					<div class="btn-group">
						  <button class="btn btn-primary" data-method="disable" type="button" title="Disable">
							<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;disable&quot;)">
							  <span class="icon icon-lock"></span>
							</span>
						  </button>
						  <button class="btn btn-primary" data-method="enable" type="button" title="Enable">
							<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;enable&quot;)">
							  <span class="icon icon-unlock"></span>
							</span>
						  </button>
						  <button class="btn btn-primary" data-method="clear" type="button" title="Clear">
							<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;clear&quot;)">
							  <span class="icon icon-remove"></span>
							</span></button>
						  <button class="btn btn-primary" data-method="reset" type="button" title="Reset">
							<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;reset&quot;)">
							  <span class="icon icon-refresh"></span>
							</span>
						  </button>
						  <label class="btn btn-primary btn-upload" for="inputImage" title="Upload image file">
							<input class="sr-only" id="inputImage" name="file" accept="image/*" type="file">
							<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="上传">
							  <span class="icon icon-upload"></span>
							</span>
						  </label>
						  <button class="btn btn-primary" data-method="destroy" type="button" title="Destroy">
							<span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;destroy&quot;)">
							  <span class="icon icon-off"></span>
							</span>
						  </button>
							<button class="btn btn-primary" data-method="getCroppedCanvas" type="button" style="height:34px;">
									<span>{lang save}</span>
							</button>
					</div>
				</div>
			</div>
		</div>
				<form id="avatarform" enctype="multipart/form-data" method="post" autocomplete="off" action="home.php?mod=spacecp&ac=avatar&ref">
					<input type="hidden" id="avatar1" name="avatar1" />
					<input type="hidden" id="avatar2" name="avatar2" />
					<input type="hidden" id="avatar3" name="avatar3" />
					<input type="hidden" name="formhash" value="{FORMHASH}" />
				</form>
				<iframe name="rectframe" id="rectframe" style="display: none;" onload=""></iframe>
				<script type="text/javascript">
					var data = "{echo implode(",", $uc_avatarflash);}".split(',');
					var src = data[data.indexOf('src')+1].replace('images/camera.swf?inajax=1','index.php?m=user&a=uploadavatar');
					src = src.replace('&a=uploadavatar', '&a=rectavatar&base64=yes');
	  				            
          
					jQuery('#avatarform').attr("action",src);
					jQuery('#avatarform').attr("target",'rectframe');
				</script>
				
				<script src="template/huyou_zisy/klp_img/avatar/cropper.pc.js"></script>
				<script src="template/huyou_zisy/klp_img/avatar/main.pc.js"></script>
				<iframe name="uploadframe" id="uploadframe" style="display: none;" onload="uploadAvatarDone();"></iframe>
				<iframe name="rectframe" id="rectframe" style="display: none;" onload="rectAvatarDone();"></iframe>
				<!--{hook/spacecp_avatar_bottom}-->
    </div>
  </div>
<script type="text/javascript">
	var redirecturl = loadUserdata('avatar_redirect');
	if(redirecturl) {
		jQuery('retpre').innerHTML = '<a href="' + redirecturl + '">查看</a>';
	}
</script>
</div>
</div>
</div>
</div>
</div>
<!--{template home/space_footer}-->